package mh.test;

import org.junit.rules.TestWatcher;
import org.junit.runner.Description;

/**
 * Add the word fail or ok after a test.
 * 
 * @author Gianmarco
 * 
 */
public class SimpleOnFailedOrSucceeded extends TestWatcher {
	@Override
	protected void failed(Throwable e, Description description) {
		System.err.println("\t\t[FAIL]");
	}

	@Override
	protected void succeeded(Description description) {
		System.out.println("\t\t[OK]");
	}
}
